import request from '@/utils/request'

/* -----------------------------------------------------------------------------采购请求单 */

// 采购请购单-表头
export function requisition(params) {
  return request({
    url: '/requisition',
    params
  })
}

// 采购请购单-表体
export function requisitionsub(params) {
  return request({
    url: '/requisitionsub',
    params
  })
}

/* -----------------------------------------------------------------------------询价单 */

// 询价单-表头
export function inquiryList(params) {
  return request({
    url: '/inquiryList',
    params
  })
}

// 询价单-表体
export function inquiryListsub(params) {
  return request({
    url: '/inquiryListsub',
    params
  })
}

// 询价单-审核
export function inquiryListHasCheck(params) {
  return request({
    url: '/inquiryListHasCheck',
    params
  })
}

/* -----------------------------------------------------------------------------采购订单 */

// 采购订单-表头
export function purchaseOrder(params) {
  return request({
    url: '/purchaseOrder',
    params
  })
}

// 采购订单-表体
export function purchaseOrdersub(params) {
  return request({
    url: '/purchaseOrdersub',
    params
  })
}

/* -----------------------------------------------------------------------------采购入库单 */

// 采购入库单-表头
export function purchasingSystem(params) {
  return request({
    url: '/purchasingSystem',
    params
  })
}

// 采购入库单-表体
export function purchasingSystemsub(params) {
  return request({
    url: '/purchasingSystemsub',
    params
  })
}

/* -----------------------------------------------------------------------------采购退货单 */

// 采购入库单-表头
export function purchaseReturn(params) {
  return request({
    url: '/purchaseReturn',
    params
  })
}

// 采购入库单-表体
export function purchaseReturnsub(params) {
  return request({
    url: '/purchaseReturnsub',
    params
  })
}

/* -----------------------------------------------------------------------------请购明细表 */

// 请购明细表
export function requisitionList(params) {
  return request({
    url: '/requisitionList',
    params
  })
}

/* -----------------------------------------------------------------------------采购订单明细表 */

// 采购订单明细表
export function purchaseOrderSchedule(params) {
  return request({
    url: '/purchaseOrderSchedule',
    params
  })
}

/* -----------------------------------------------------------------------------采购交易明细表 */

// 采购交易明细表
export function purchaseTransactionDetails(params) {
  return request({
    url: '/purchaseTransactionDetails',
    params
  })
}

/* -----------------------------------------------------------------------------采购交期达成率 */

// 采购交期达成率
export function purchaseDeliveryTime(params) {
  return request({
    url: '/purchaseDeliveryTime',
    params
  })
}

/* -----------------------------------------------------------------------------供应商交易汇总表 */

// 供应商交易汇总表
export function supplierTransactionSummary(params) {
  return request({
    url: '/supplierTransactionSummary',
    params
  })
}

/* -----------------------------------------------------------------------------采购询价比价分析 */

// 采购询价比价分析
export function getInquiryAnalysisData(params) {
  return request({
    url: '/InquiryAnalysis',
    params
  })
}
